#ifndef LOGIN_H
#define LOGIN_H

#include <QWidget>
#include "dboperator.h"
#include "QMessageBox"

namespace Ui {
class login;
}

class login : public QWidget
{
    Q_OBJECT

public:
    explicit login(QWidget *parent = 0);
    ~login();

private slots:
    void on_login_btn_clicked();

signals:
    success(int id);
    failed();

private:
    Ui::login *ui;
    int id;
    QString password;
    DbOperator* dbase;
    container msg;
};

#endif // LOGIN_H
